﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="BuscarPuerto.aspx.vb" Inherits="webNaviera.BuscarPuerto" %>


<head>

<base target=_self></base>

    <style type="text/css">
        .style2
        {
            font-size: xx-small;
            width: 1584px;
            height: 19px;
        }
        .style3
        {
            width: 619px;
        }
        .style5
        {
            font-size: xx-small;
            height: 24px;
            width: 1584px;
        }
        .style10
        {
            font-size: x-small;
            height: 22px;
            text-align: center;
            font-weight: 700;
        }
        .style21
        {
            font-size: xx-small;
            height: 22px;
            width: 239px;
        }
        .style31
        {
            height: 16px;
        }
        .style33
        {
            font-size: xx-small;
        }
        .style34
        {
            font-size: x-small;
        }
        .graybutton 
{
	text-decoration:none;
	BORDER: solid 1px #aaaaaa; FONT-WEIGHT: normal; FONT-SIZE: 9px; CLIP: rect(1px 1px 1px 1px); 
	COLOR: #333333; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #eeeeee;
	font-weight:bold;
            height: 18px;
        }

        .style39
        {
            width: 619px;
            height: 24px;
        }
        .style41
        {
            height: 24px;
            width: 239px;
        }
        </style>
</head>

<script>

//    var ventana_secundaria

//    function InitializeComponent() {
//        //la referencia de la ventana es el objeto window del popup. Lo utilizo para acceder al método close
//        //        window.opener.location.href = url;
//        window.opener.InitializeComponent()
//        window.opener.focus() 
//    }

</script>

<body bgcolor="#eaeaea">
<form id="form1" runat="server"> 
	<table style="border-width: thin; background-color: #EAEAEA; font-family: Arial; font-size: 10px; width: 300px;" 
        cellspacing="0" cellpadding="0" border="0"> 
		<tr class="TRlist3">
			<td class="style10">&nbsp;</td>
			<td class="style10" colspan="3"><u><strong>Búsqueda Puerto</strong></u></td>
		</tr>
		<tr class="TRlist3">
			<td style="height: 22px" class="style34">&nbsp;</td>
			<td colspan="2" style="height: 22px" class="style34">&nbsp;</td>
			<td class="style21">
                  &nbsp;</td>
		</tr>
		<tr class="TRlist3">
			<td class="style2">&nbsp;</td>
			<td class="style2">Codigo</td>
			<td class="style3">
                <span class="style33">
                <asp:TextBox ID="txtCodSolicitud" runat="server" style="margin-left: 0px" 
                    Width="89px" MaxLength="5"></asp:TextBox>
                 &nbsp;<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="txtCodSolicitud" ErrorMessage="Solo números enteros" ForeColor="#FF3300" 
                    ValidationExpression="^0$|^[1-9][0-9]*$|^[1-9][0-9]{0,2}(,[0-9]{3})$"></asp:RegularExpressionValidator>
                </span></td>
			<td valign="top">
                  <asp:Button ID="btnConsultar1" class="graybutton" runat="server" 
                    Text="Consultar" Width="100px" />
            </td>            
		</tr>		
		<tr class="TRlist3">
			<td class="style5">&nbsp;</td>
			<td class="style5">Nombre</td>
			<td class="style3">               
				<span class="style33">
                <asp:TextBox ID="txtNombreServ" runat="server" Width="281px" MaxLength="50"></asp:TextBox>
                </span>
                </td>

		    <td>				
                  <asp:Button ID="btnSeleccionar" class="graybutton" runat="server" 
                    Text="Seleccionar" Width="100px" />
                </td>
		</tr>		
		<tr class="TRlist3"></td>
		</tr>
		<tr class="TRlist3">
			<td class="style5">&nbsp;</td>
			<td class="style5"></td>
			<td class="style39">               
				</td>

		    <td class="style41">
                  <asp:Button ID="btnSalir" class="graybutton" runat="server" 
                    Text="Salir" Width="100px" />
                </td>
		</tr>
		<tr class="TRlist3">
			<td class="style31" dir="ltr" 
                style="font-style: normal; font-size: x-small; background-color: #EAEAEA;">
                &nbsp;</td>
					 
			<td class="style31" colspan="3" dir="ltr" 
                style="font-style: normal; font-size: x-small; background-color: #EAEAEA;">
                <br />
                <br />
    <asp:GridView ID="dgProveedor" runat="server" 
        AutoGenerateColumns="False" Width="450px">
        <AlternatingRowStyle Font-Bold="False" Font-Strikeout="False" />
        <Columns>
            <asp:TemplateField HeaderText="Seleccionar">
              <ItemTemplate>
                     <asp:CheckBox ID="chkSeleccionar" runat="server"   />
                   <asp:Label ID="lblcodigo" runat="server" Text='<%#Eval("CodSolicitud") %>'  CausesValidation="False"
                                    Visible="False"></asp:Label>
                   <asp:Label ID="lblProveedores" runat="server" Text='<%#Eval("Proveedores") %>'  CausesValidation="False"
                                    Visible="False"></asp:Label>
                   <asp:Label ID="lblDescripcionServicio" runat="server" Text='<%#Eval("NombreServicio") %>'  CausesValidation="False"
                                    Visible="False"></asp:Label>

              </ItemTemplate>
    
                <HeaderStyle Width="3px" />
    
            </asp:TemplateField>
            <asp:BoundField DataField="CodEmbarcador" HeaderText="CodEmbarcador" >
            <HeaderStyle Width="10px" />
            </asp:BoundField>
            <asp:BoundField DataField="NombreServicio" HeaderText="Nombre embarcador" >
            <HeaderStyle Width="180px" />
            </asp:BoundField>
            <asp:BoundField DataField="Proveedores" HeaderText="Proveedor" Visible="False">
            <HeaderStyle Width="5px" />
            </asp:BoundField>
        </Columns>
        <FooterStyle Font-Bold="False" Font-Strikeout="True" />
        <HeaderStyle BackColor="#666666" Font-Size="XX-Small" ForeColor="White" />
        <RowStyle Font-Size="XX-Small" />
    </asp:GridView>
                <br />
                <br />
                <br />
            </td>
					 
		<tr class="TRlist3">
			<td class="style31" dir="ltr" 
                style="font-style: normal; font-size: x-small; background-color: #EAEAEA;">
                &nbsp;</td>
					 
			<td class="style31" colspan="3" dir="ltr" 
                style="font-style: normal; font-size: x-small; background-color: #EAEAEA;">
                &nbsp;</td>
					 
	</table>
</form>

